<!DOCTYPE html>
<html>
<head>
    <title>数据变更</title>
	<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-5">
                <template>
                    <div class="block" >
                        <el-date-picker
                                v-model="queryByDate"
                                type="daterange"
                                value-format="yyyy-MM-dd"
                                unlink-panels
                                start-placeholder="开始日期"
                                end-placeholder="结束日期">
                        </el-date-picker>
                    </div>
                </template>
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <!--导入文件-->
            <#if shiro.hasPermission("fun:emp:import")>
            <a class="btn btn-primary" @click="dialogFormVisible = true"><i class="fa fa-plus"></i>&nbsp;导入变化人员数据</a>
            <el-dialog title="导入文件" :visible.sync="dialogFormVisible">
                <el-upload
                        class="upload-demo"
                        ref="upload"
                        accept="xlsx"
                        drag
                        action="../../fun/emp/importDataChangeExcel"
                        multiple
                        :limit="1"
                        :file-list="fileList"
                        :auto-upload="false">
                    <i class="el-icon-upload"></i>
                    <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
                    <div class="el-upload__tip" slot="tip">只能上传xlsx文件</div>
                </el-upload>
                <div slot="footer" class="dialog-footer">
                    <el-button @click="dialogFormVisible = false">取 消</el-button>
                    <el-button type="primary" @click="submitUpload">导入</el-button>
                </div>
            </el-dialog>
            </#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>
</div>
<script src="${request.contextPath}/statics/js/modules/function/emp_data_change.js?_${.now?long}"></script>
</body>
</html>